import 'package:flutter/material.dart';

class RegisterFirst extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('注册页面1'),
      ),
      body: Center(
        child: Column(
          children: <Widget>[
            Text('这里是注册页面1'),
            RaisedButton(
              child: Text('下一步'),
              onPressed: () {
                Navigator.pushNamed(context, '/registerSecond');
//              Navigator.of(context).pushReplacementNamed('/registerSecond'); // 替换到当前路由
              },
            )
          ],
        ),
      ),
    );
  }
}